<template>
  <div class="q-pa-md">
    <t-badge color="grey-3" text-color="black" class="q-mb-sm">
      {{ hex }}
    </t-badge>

    <t-color
      v-model="hex"
      no-header
      no-footer
      default-view="palette"
      class="my-picker"
    />
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        hex: ref('#FF00FF'),
      };
    },
  };
</script>

<style lang="sass" scoped>
  .my-picker
    max-width: 250px
</style>
